// pages/login/login.js
const app=getApp();
Page({
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },
  onShow: function() {
    console.log(app.globalData.isLogin)
    if(app.globalData.isLogin==true){
      wx.redirectTo({
        url: '../home/home',
      })
    }
  },
  routerToStudentLogin() {
    wx.redirectTo({
      url: '../studentlogin/studentlogin',
    })
  },

  routerToTeacherLogin() {
    wx.redirectTo({
      url: '../teacherlogin/teacherlogin',
    })
  },

  routerToAdminLogin() {
    wx.redirectTo({
      url: '../adminlogin/adminlogin',
    })
  }

})